import 'package:grocery_app_demo/generated/json/base/json_field.dart';
import 'package:grocery_app_demo/generated/json/login_res_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class LoginResEntity {

	late int userId;
	late String accessToken;
	late String refreshToken;
	late int expiresTime;
	late String nickname;
  
  LoginResEntity();

  factory LoginResEntity.fromJson(Map<String, dynamic> json) => $LoginResEntityFromJson(json);

  Map<String, dynamic> toJson() => $LoginResEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}